package com.cm.caseManagement.pojo.entity;
import com.cm.caseManagement.annotation.Excel;
import com.cm.caseManagement.core.domain.BaseEntity;
import jakarta.validation.constraints.NotNull;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 案件分配对象 cm_case_assign
 *
 * @author ruoyi
 * @date 2025-10-05
 */
public class CmCaseAssign extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 外部唯一id */
    @Excel(name = "外部唯一id")
    private String publicId;

    /** 案件id */
    @NotNull(message = "案件id不能为空")
    @Excel(name = "案件id")
    private Long caseId;

    /** 主办律师 */
    @NotNull(message = "主办律师不能为空")
    @Excel(name = "主办律师")
    private Long sponsorId;

    /** 负责律师 */
    @NotNull(message = "负责律师不能为空")
    @Excel(name = "负责律师")
    private Long principalId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setPublicId(String publicId)
    {
        this.publicId = publicId;
    }

    public String getPublicId()
    {
        return publicId;
    }

    public void setCaseId(Long caseId)
    {
        this.caseId = caseId;
    }

    public Long getCaseId()
    {
        return caseId;
    }

    public void setSponsorId(Long sponsorId)
    {
        this.sponsorId = sponsorId;
    }

    public Long getSponsorId()
    {
        return sponsorId;
    }

    public void setPrincipalId(Long principalId)
    {
        this.principalId = principalId;
    }

    public Long getPrincipalId()
    {
        return principalId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("publicId", getPublicId())
            .append("caseId", getCaseId())
            .append("sponsorId", getSponsorId())
            .append("principalId", getPrincipalId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
